package com.wanxi.set;

import java.util.Set;
import java.util.TreeSet;

public class StudentTreeSet {
    public static void main(String[] args) {
        Set<Student> set=new TreeSet<>();
        set.add(new Student("aa",11));
        set.add(new Student("dd",11));
        set.add(new Student("cc",11));
        set.add(new Student("bb",11));
        System.out.println(set);
    }
}
